package com.zbkj.common.dto.zb;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "CommodityClassDto对象", description = "项目分类信息分页数据Dto对象")
public class CommodityClassDto {

    @ApiModelProperty(value = "分类id")
    private Integer id;

    @ApiModelProperty(value = "父级分类id")
    private Integer pid;

    @ApiModelProperty(value = "级数")
    private Integer level;

    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "状态（1-正常 0-删除）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "子集信息")
    private List<CommodityClassDto> list;
}
